from pyecharts import Bar

attr = ["{}月".format(i) for i in range(1,13)]
v1 = [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
v2 = [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
bar = Bar("柱状图实例")
bar.add("蒸发量",attr,v1,mark_line=["average"],
        mark_point=["max","min"],is_more_utils=True)
bar.add("降雨量",attr,v2,mark_line=["average"],
        mark_point=["max","min"],is_more_utils=True)
bar.render(path="Bar6.html")